{% load portal.templatetags.filters %}
{% extends "base.html" %}
{% block content %}
		<h2>Urejanje profila</h2>
		<br />
		{% if saved %}
		<p><i>Spremembe shranjene.</i></p>
		{% endif %}
		<form action="/portal/profile/" method="post">
            <div class="form">
                <table cellpadding="1" cellspacing="1">
                    <tr>
                        <td style="vertical-align: top;">Uporabniško ime:</td>
                        <td><b>{{ user.username }}</b></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td style="vertical-align: top;">E-pošta:</td>
                        <td><b>{{ user.email }}</b></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td style="vertical-align: top;">Datum registracije</td>
                        <td><b>{{ user.date_joined|beautify_date }}</b></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>Ime:</td>
                        <td>{{ form.first_name }}</td>
                        <td><div class="error-single">{{ form.errors.first_name.0 }}</div></td>
                    </tr>
                    <tr>
                        <td>Priimek:</td>
                        <td>{{ form.last_name }}</td>
                        <td><div class="error-single">{{ form.errors.last_name.0 }}</div></td>
                    </tr>
                    <tr>
                        <td>Podjetje:</td>
                        <td>{{ form.company }}</td>
                        <td><div class="error-single">{{ form.errors.company.0 }}</div></td>
                    </tr>
                    <tr>
                        <td>Status:</td>
                        <td>{{ form.status }}</td>
                        <td><div class="error-single">{{ form.errors.status.0 }}</div></td>
                    </tr>
                    <tr>
                        <td>Podpis na forumu:</td>
                        <td>{{ form.signature }}</td>
                        <td><div class="error-single">{{ form.errors.signature.0 }}</div></td>
                    </tr>
                    <tr>
                        <td>Javni e-poštni naslov:</td>
                        <td>{{ form.public_email }}</td>
                        <td><div class="error-single">{{ form.errors.public_email.0 }}</div></td>
                    </tr>
                    <tr>
                        <td>Obveščaj me o dogodkih/novostih:&nbsp;&nbsp;</td>
                        <td>{{ form.send_notices }}</td>
                        <td><div class="error-single">{{ form.errors.send_notices.0 }}</div></td>
                    </tr>
                </table>
                <br />
                <input type="submit" name="submit" value="  Shrani spremembe  " />
            </div>
		</form>
{% endblock %}

{% block right %}
{% endblock %}